package cn.itacm.pattern.creational.simpleFactory;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		IProduct productA = Factory.createProduct(ProductEnum.ProductA);
		IProduct productB = Factory.createProduct(ProductEnum.ProductB);
		System.out.println(productA.getName());
		System.out.println(productB.getName());
	}

}
